package com.itheima.springbootwebtlias.aspect;

import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Aspect
public class AspectExecution {
    @Pointcut("@annotation(com.itheima.springbootwebtlias.anno.MyLog)")
    public void gk() {

    }

    @Before("gk()")
    public void before() {
        log.info("before... ...");
    }
}
